
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <script src="iconfont.js"></script>

    <style type="text/css">
        .icon {
          /* 通过设置 font-size 来改变图标大小 */
          width: 1em; height: 1em;
          /* 图标和文字相邻时，垂直对齐 */
          vertical-align: -0.15em;
          /* 通过设置 color 来改变 SVG 的颜色/fill */
          fill: currentColor;
          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
             normalize.css 中也包含这行 */
          overflow: hidden;
        }

    </style>
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-user"></use>
                    </svg>
                    <div class="name">user</div>
                    <div class="fontclass">#enc-icon-user</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-setting"></use>
                    </svg>
                    <div class="name">setting</div>
                    <div class="fontclass">#enc-icon-setting</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-documents"></use>
                    </svg>
                    <div class="name">documents</div>
                    <div class="fontclass">#enc-icon-documents</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-shujujieru"></use>
                    </svg>
                    <div class="name">数据接入</div>
                    <div class="fontclass">#enc-icon-shujujieru</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-shujuchuli"></use>
                    </svg>
                    <div class="name">数据处理</div>
                    <div class="fontclass">#enc-icon-shujuchuli</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-renwuzhongxin"></use>
                    </svg>
                    <div class="name">任务中心</div>
                    <div class="fontclass">#enc-icon-renwuzhongxin</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-banben"></use>
                    </svg>
                    <div class="name">版本</div>
                    <div class="fontclass">#enc-icon-banben</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-fang"></use>
                    </svg>
                    <div class="name">方</div>
                    <div class="fontclass">#enc-icon-fang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-fangxuan"></use>
                    </svg>
                    <div class="name">方选</div>
                    <div class="fontclass">#enc-icon-fangxuan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-yuan"></use>
                    </svg>
                    <div class="name">圆</div>
                    <div class="fontclass">#enc-icon-yuan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-yuanxuan"></use>
                    </svg>
                    <div class="name">圆选</div>
                    <div class="fontclass">#enc-icon-yuanxuan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-shuaxin"></use>
                    </svg>
                    <div class="name">刷新</div>
                    <div class="fontclass">#enc-icon-shuaxin</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-daoru"></use>
                    </svg>
                    <div class="name">导入</div>
                    <div class="fontclass">#enc-icon-daoru</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-daochu"></use>
                    </svg>
                    <div class="name">导出</div>
                    <div class="fontclass">#enc-icon-daochu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-shizhong"></use>
                    </svg>
                    <div class="name">时钟</div>
                    <div class="fontclass">#enc-icon-shizhong</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-rili"></use>
                    </svg>
                    <div class="name">日历</div>
                    <div class="fontclass">#enc-icon-rili</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-xianshizuidahua"></use>
                    </svg>
                    <div class="name">显示最大化</div>
                    <div class="fontclass">#enc-icon-xianshizuidahua</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-fuwushengcheng"></use>
                    </svg>
                    <div class="name">服务生成</div>
                    <div class="fontclass">#enc-icon-fuwushengcheng</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-fuwumulu"></use>
                    </svg>
                    <div class="name">服务目录</div>
                    <div class="fontclass">#enc-icon-fuwumulu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-jiankong"></use>
                    </svg>
                    <div class="name">监控</div>
                    <div class="fontclass">#enc-icon-jiankong</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-fuwushenqing"></use>
                    </svg>
                    <div class="name">服务申请</div>
                    <div class="fontclass">#enc-icon-fuwushenqing</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-rizhishencha"></use>
                    </svg>
                    <div class="name">日志审查</div>
                    <div class="fontclass">#enc-icon-rizhishencha</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-gaojing"></use>
                    </svg>
                    <div class="name">告警</div>
                    <div class="fontclass">#enc-icon-gaojing</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-shenqingshenhe"></use>
                    </svg>
                    <div class="name">申请审核</div>
                    <div class="fontclass">#enc-icon-shenqingshenhe</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-wodefuwu"></use>
                    </svg>
                    <div class="name">我的服务</div>
                    <div class="fontclass">#enc-icon-wodefuwu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-yingyongxitongmulu"></use>
                    </svg>
                    <div class="name">应用系统目录</div>
                    <div class="fontclass">#enc-icon-yingyongxitongmulu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-jiankonggaojingLOGO"></use>
                    </svg>
                    <div class="name">监控告警LOGO</div>
                    <div class="fontclass">#enc-icon-jiankonggaojingLOGO</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-shujufuwuLOGO"></use>
                    </svg>
                    <div class="name">数据服务LOGO</div>
                    <div class="fontclass">#enc-icon-shujufuwuLOGO</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-fuwujiankong"></use>
                    </svg>
                    <div class="name">服务监控</div>
                    <div class="fontclass">#enc-icon-fuwujiankong</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-shenji"></use>
                    </svg>
                    <div class="name">审计</div>
                    <div class="fontclass">#enc-icon-shenji</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-bianji"></use>
                    </svg>
                    <div class="name">编辑</div>
                    <div class="fontclass">#enc-icon-bianji</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-shousuo"></use>
                    </svg>
                    <div class="name">收缩</div>
                    <div class="fontclass">#enc-icon-shousuo</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-zhankai"></use>
                    </svg>
                    <div class="name">展开</div>
                    <div class="fontclass">#enc-icon-zhankai</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-feizhi"></use>
                    </svg>
                    <div class="name">废止</div>
                    <div class="fontclass">#enc-icon-feizhi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-fuzhi"></use>
                    </svg>
                    <div class="name">复制</div>
                    <div class="fontclass">#enc-icon-fuzhi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-fuwushenqing1"></use>
                    </svg>
                    <div class="name">服务申请</div>
                    <div class="fontclass">#enc-icon-fuwushenqing1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-fuwushengcheng1"></use>
                    </svg>
                    <div class="name">服务生成</div>
                    <div class="fontclass">#enc-icon-fuwushengcheng1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-zujian"></use>
                    </svg>
                    <div class="name">组件</div>
                    <div class="fontclass">#enc-icon-zujian</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-zidingyichajian"></use>
                    </svg>
                    <div class="name">自定义插件</div>
                    <div class="fontclass">#enc-icon-zidingyichajian</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-yuan1"></use>
                    </svg>
                    <div class="name">源</div>
                    <div class="fontclass">#enc-icon-yuan1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-zhuce"></use>
                    </svg>
                    <div class="name">注册</div>
                    <div class="fontclass">#enc-icon-zhuce</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-yonghutiaoyan"></use>
                    </svg>
                    <div class="name">用户调研</div>
                    <div class="fontclass">#enc-icon-yonghutiaoyan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-danbiaocaiji"></use>
                    </svg>
                    <div class="name">单表采集</div>
                    <div class="fontclass">#enc-icon-danbiaocaiji</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-shujugengxin"></use>
                    </svg>
                    <div class="name">数据更新</div>
                    <div class="fontclass">#enc-icon-shujugengxin</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#enc-icon-shujuheyan"></use>
                    </svg>
                    <div class="name">数据核验</div>
                    <div class="fontclass">#enc-icon-shujuheyan</div>
                </li>
            
        </ul>


        <h2 id="symbol-">symbol引用</h2>
        <hr>

        <p>这是一种全新的使用方式，应该说这才是未来的主流，也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
        这种用法其实是做了一个svg的集合，与另外两种相比具有如下特点：</p>
        <ul>
          <li>支持多色图标了，不再受单色限制。</li>
          <li>通过一些技巧，支持像字体那样，通过<code>font-size</code>,<code>color</code>来调整样式。</li>
          <li>兼容性较差，支持 ie9+,及现代浏览器。</li>
          <li>浏览器渲染svg的性能一般，还不如png。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-symbol-">第一步：引入项目下面生成的symbol代码：</h3>
        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
        <h3 id="-css-">第二步：加入通用css代码（引入一次就行）：</h3>
        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
.icon {
   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
   vertical-align: <span class="hljs-number">-0.15</span>em;
   fill: currentColor;
   overflow: hidden;
}
&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
        <h3 id="-">第三步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#enc-icon-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
</span>&lt;<span class="hljs-regexp">/svg&gt;
        </span></code></pre>
    </div>
</body>
</html>
